<?php
$this->title="用户添加"; 
use yii\helpers\Html;


p($data);
?>

 

名字：<?=$data['name']?>

<?=Html::beginForm('','post',['id'=>'addForm','class'=>'form'])?><hr />
<?=Html::input('text','username','admin',['class'=>'input'])?><hr />
<?=Html::input('password','pwd','',['class'=>'input password'])?><hr />
<?=Html::input('hidden','act','add',['class'=>'input hide'])?> 
<hr />
<?=Html::textInput('email','',['class'=>'input'])?><hr />
<?=Html::passwordInput('password','',['class'=>'input password'])?><hr />
<?=Html::hiddenInput('sort','10',['class'=>'input hide'])?>

<hr />
<?=Html::textarea('info','请填写',['class'=>'textarea'])?><hr />
<?=Html::radio('status',true,['class'=>'radio'])?><hr />
<?=Html::radioList('sex',1,['0'=>'男','1'=>'女'],['class'=>'sex-list'])?>
<hr />
<?=Html::checkbox('list', true, ['class'=>'checkbox']) ?><hr />
<?=Html::checkboxList('list',3,['1'=>'php','2'=>'tp','3'=>'yii'],['class'=>'checkbox']);?>
<hr />

<?=Html::label('类型：','username',['class'=>'label','style'=>'color:#abcdef']);?><hr />
<?=Html::dropDownList('type',1,['1'=>'php','2'=>'java','3'=>'python'],['class'=>'dropdown']);?><hr />
<?=Html::fileInput('image',null,['class'=>'uploads']);?><hr />
<?=Html::button('普通按钮',['class'=>'btn']); ?>

<?=Html::submitButton('提交按钮',['class'=>'btn submit-btn']);?>

<?=Html::resetButton('重置按钮',['class'=>'btn reset-btn']);?>










 



<?=Html::endForm()?>

